/*
*   路由的配置文件
* */

import Vue from 'vue'
import VueRouter from 'vue-router'
import HelloWorld from "@/components/HelloWorld.vue";
import TeacherView from "@/components/TeacherView.vue";
import StudentView from "@/components/StudentView.vue";

Vue.use(VueRouter)

//  定义理由列表

let  routes = [
    {path:'/hello',component:HelloWorld},
    {path:'/teacher',component:TeacherView},
    {path:'/student',component:StudentView}
]

// 创建路由对象
let router =new  VueRouter({
    routes
})

//暴露对象
export  default router
